<%@ Page EnableEventValidation="false" Language="C#" MasterPageFile="app-frame.master" AutoEventWireup="true" CodeFile="AF_functionRegister.aspx.cs" Inherits="app_frame_function_register" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">  
    <script language="JavaScript" type="text/javascript" src="scripts/AF_functionRegister.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
    <table width="100%">    
    <tr><td><asp:Label ID="lbl_message" runat="server" CssClass="controlFont"></asp:Label></td></tr>
    <tr>
    <td style="width: 702px">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" runat="server" id="tblcontrols">
        <tr>
            <td colspan="2">
        <%--<asp:Label ID="lbl_message" runat="server" Font-Names="Verdana" Font-Size="Smaller"
            ForeColor="DarkOliveGreen"></asp:Label>--%></td>
        </tr>
    <tr>
    <td colspan="2" class="Dynamic_PageHeaderRow">
        <span style="font-size: 10pt; font-family: Verdana">
            <asp:Label ID="lblHeader" runat="server" Text="Function Register - Add"></asp:Label></span></td>
    </tr>
        <tr>
            <td colspan="2">
                <asp:HiddenField ID="p_function_register_af_row_id" runat="server" />
            </td>            
        </tr>
        <tr>
            <td style="height: 24px; width: 246px;" valign="top">
                <span class="controlLabelFont">Function ID</span></td>
            <td style="height: 24px">
                <asp:TextBox ID="p_function_register_id" runat="server" 
                    Width="250px" Enabled="False" CssClass="controlFont"></asp:TextBox></td>
        </tr>
    <tr>
    <td valign="top" style="height: 24px; width: 246px;"> 
        <span class="controlLabelFont">            Name</span></td>
    <td style="height: 24px;"><asp:TextBox ID="p_function_register_fr_name" runat="server" Width="250px" CssClass="controlFont"></asp:TextBox></td>
    </tr>
    <tr>
    <td valign="top" style="width: 246px"> 
        <span class="controlLabelFont">Description</span></td>
    <td><asp:TextBox ID="p_function_register_fr_desc" runat="server" MaxLength="255" Rows="3" TextMode="MultiLine" Width="250px" CssClass="controlFont"></asp:TextBox>
        <asp:CheckBox ID="p_function_register_fr_isValidation" runat="server" Text="is Validation Function" Visible="False" CssClass="controlFont" /></td>
    </tr>
    <tr>
        <td valign="top" style="width: 246px"> 
            <span class="controlLabelFont">Type</span></td>        
        <td>
                <asp:DropDownList ID="p_function_register_ft_type" runat="server" Width="250px" AutoPostBack="True" OnSelectedIndexChanged="p_function_register_ft_type_SelectedIndexChanged" CssClass="controlFont">
                    <asp:ListItem>Expression</asp:ListItem>
                    <asp:ListItem>Function</asp:ListItem>
                </asp:DropDownList></td>
    </tr>    
         <tr>
            <td style="width: 246px; height: 22px;">
                <span>
                    <asp:Label ID="lblAvaliable" runat="server"  
                        Text="Available Expressions" CssClass="controlLabelFont"></asp:Label></span></td>
            <td style="height: 22px">
                <asp:DropDownList ID="p_function_register_fr_selected_fnExp" runat="server" Width="250px" AutoPostBack="True" OnSelectedIndexChanged="dummy_SelectedIndexChanged" CssClass="controlFont">
                </asp:DropDownList>
                </td>
        </tr>
        <tr>
            <td style="width: 246px; height: 22px">
                <asp:Label ID="Label1" runat="server" Text="Owner" CssClass="controlLabelFont"></asp:Label></td>
            <td style="height: 22px" id="tdownerid" runat="server">
                <asp:TextBox ID="txt_p_function_register_owner_id" runat="server" CssClass="controlFont"></asp:TextBox>
                <asp:HiddenField ID="p_function_register_owner_id" runat="server" />
                <img id="imgOwnerSearch" runat="server" alt="Click here for Lookup Window" src="Images/search.gif" class="SearchPopup" onclick="javascript:openlookupwindow('p_function_register_owner_id','txt_p_function_register_owner_id','f496930dfe0b690f','','');" />
                </td>
        </tr>
        <tr>
            <td style="width: 246px">
                <span>&nbsp;</span></td>
            <td>
                &nbsp;</td>
        </tr>
    <tr>
    <td colspan="2">
        <asp:Table Width="100%" ID="tblParamters" runat="server" Font-Names="Verdana" Font-Size="X-Small" CellPadding="4" BorderWidth="0px" CellSpacing="0">
            <asp:TableRow CssClass="Dynamic_PageHeaderRow" runat="server" ID="roww1">
                <asp:TableCell runat="server" ID="Coll1" CssClass="controlLabelFont">Parameters</asp:TableCell>
                <asp:TableCell runat="server" ID="Coll2" CssClass="controlLabelFont">Parameter Value</asp:TableCell>
                <asp:TableCell ID="Coll3" runat="server" CssClass="controlLabelFont"></asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        <asp:Label ID="lblDynamicContent" runat="server" CssClass="controlFont"></asp:Label>
        <asp:HiddenField ID="hfParamterCount" runat="server" />
        <asp:HiddenField ID="hfRequestURL" runat="server" />
    </td>    
    </tr> 
    </table>   </td></tr><tr runat="server" id="trbtn" class="displaygridbottom">        
    <td align="left"><input type="submit" value="Save" id="btnSave" runat="server" onclick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving....');" onserverclick="btnSave_ServerClick" /> <input type="submit" value="Save" id="btnUpdate" runat="server" onclick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving....');" onserverclick="btnUpdate_ServerClick" /> 
        <input type="button" value="Reset" id="btnReset" runat="server" onserverclick="btnReset_ServerClick" /> </td>
    </tr>     
  </table>
</asp:Content>
  
